﻿using Avalonia.BiliBili.Libs.Models.View;
using Bilibili.Model.Bangumi;
using ReactiveUI;
using System.Collections.ObjectModel;

namespace Avalonia.BiliBili.ViewModels
{
    public sealed class TimelineViewModel : ViewModelBase
    {
        private ObservableCollection<TabControlItem<TimeLineItem>> items = [];
        public ObservableCollection<TabControlItem<TimeLineItem>> Items
        {
            get => items;
            private set => this.RaiseAndSetIfChanged(ref items, value);
        }
        public override void Dispose()
        {
            base.Dispose();
            items?.Clear();
        }
    }
}